package top.xiesen.exception;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class TestReadFile {
	static FileReader reader = null;
	public static void main(String[] args) {
		try {
			reader = new FileReader("e:/Hello.txt");
			char c = (char) reader.read();
			char c2 = (char) reader.read();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e1) {
			e1.printStackTrace();
		} finally{
			try {
				if(reader != null){
					reader.close();
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
